﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="zb.aspx.cs" Inherits="Web.zb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
        <asp:CheckBox ID="lmcb" runat="server" Text="连麦" /><br /><br />
        <asp:CheckBox ID="zjcb" runat="server" Text="证件" /><br /><br />
        <asp:CheckBox ID="phbcb" runat="server" Text="排行榜" /><br /><br />
        <asp:CheckBox ID="cjcb" runat="server" Text="抽奖" /><br /><br />
        <asp:CheckBox ID="xqcb" runat="server" Text="相亲" /><br /><br />
        <asp:CheckBox ID="pkcb" runat="server" Text="PK对战" /><br /><br />
        <asp:CheckBox ID="xqpkcb" runat="server" Text="相亲PK" /><br /><br />
        <asp:CheckBox ID="spxqcb" runat="server" Text="视频相亲" /><br /><br />
        <asp:TextBox ID="SNTB" runat="server" Text="" Width="500px"></asp:TextBox><br /><br />
        <asp:TextBox ID="czk" runat="server" Text=""></asp:TextBox><br /><br />
            <asp:TextBox ID="MMIP" runat="server" Text="123.56.31.101#2021" Visible="false"></asp:TextBox><br /><br />
            <button id="ygybt" onclick="add(30);">一个月</button> <button id="egybt" onclick="add(61);">二个月</button> <button id="sgybt" onclick="add(92);">三个月</button><br /><br />
             <button id="bnbt" onclick="add(180);">半年</button> <button id="qqqq" onclick="add(3);">千万不要选错</button> <button id="ynbt" onclick="add(365);">一年</button><br /><br />
             <button id="mfb" onclick="add(0);">手动版本</button> <button id="gq" onclick="add(-1);">过期</button><br /><br />
        <asp:Button runat="server" ID="zhuce" Text="关闭页面" OnClick="zhuce_Click" Visible="false" Width="188px" Height="88px" />
        <asp:CheckBox ID="WLCB" runat="server" Text="网络认证" Checked="true" /><br /><br />
        <asp:CheckBox ID="SCB" runat="server" Text="删除" /><br /><br />
        </div>
    </form>
    <script>
        Date.prototype.format = function (fmt) {
            var o = {
                "M+": this.getMonth() + 1,                 //月份 
                "d+": this.getDate(),                    //日 
                "h+": this.getHours(),                   //小时 
                "m+": this.getMinutes(),                 //分 
                "s+": this.getSeconds(),                 //秒 
                "q+": Math.floor((this.getMonth() + 3) / 3), //季度 
                "S": this.getMilliseconds()             //毫秒 
            };
            if (/(y+)/.test(fmt)) {
                fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
            }
            for (var k in o) {
                if (new RegExp("(" + k + ")").test(fmt)) {
                    fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
                }
            }
            return fmt;
        }
        function add(day) {
            if (day == 0) {
                document.getElementById("czk").value = "2088-11-11pk";
            }
            else if (day == -1) {
                document.getElementById("czk").value = "2020-02-02pk";
            }
            else {
                var myDate = new Date();
                var d = new Date(myDate);
                d.setDate(d.getDate() + day);
                document.getElementById("czk").value = d.format("yyyy-MM-dd")+"pk";
            }
            return false;
        }
    </script>
</body>
</html>
